package hc.bre.clas

import com.fasterxml.jackson.annotation.JsonInclude

import hc.bre.cmn.struct.DataStructItem
import hc.bre.cmn.struct.RuleResultStruct

@groovy.transform.CompileStatic
@groovy.transform.ToString(includeNames=true,includePackage=false)
class ClasResultStruct extends RuleResultStruct{
	ClasResultStruct() {
		DataStructItem item;
		item = new DataStructItem();
		item.id = ++maxid;
		item.code = 'clas';
		item.name = '分类结果';
		item.important = 10;
		item.type = 'object';
		item.list = [];
		root.list.add(item);
		
		DataStructItem parent = item;
		
		item = new DataStructItem();
		item.id = ++maxid;
		item.code = 'id';
		item.name = '分类标识';
		item.important = 10;
		item.type = 'number';
		parent.list.add(item);
		
		item = new DataStructItem();
		item.id = ++maxid;
		item.code = 'code';
		item.name = '分类代码';
		item.type = 'text';
		item.important = 12;
		parent.list.add(item);
		
		item = new DataStructItem();
		item.id = ++maxid;
		item.code = 'name';
		item.name = '分类名称';
		item.important = 11;
		
		item.type = 'text';
		parent.list.add(item);
	}
}
